﻿using UnityEngine;
using System.Collections;

public class test : MonoBehaviour {
	
	// Use this for initialization
	void OnGUI () {
	//	GUI.Box(new Rect(0, 0, Screen.width/2, Screen.height),"omg");
	}
	
	// Update is called once per frame
	void Update () {
		/*
		Debug.Log("wtf");
		// Left-half of the screen.
		//	Rect bounds1 = new Rect(0, 0, Screen.width/2, Screen.height);
		//var touch = Input.touches[0];
		Vector3 touch = Input.mousePosition;
		if (touch.x < Screen.width/2)
		{
			Debug.Log("	DoLeftSideStuff()");
		}
		else if (touch.x > Screen.width/2)
		{
			Debug.Log("	DoRightSideStuff()");
		}
		

		float   halfScreenW = Screen.width/2;
		float offset= transform.collider.bounds.center.y;
		
		Rect bounds = new Rect(0,0,Screen.width,Screen.height/2);
		//Rect bounds1 = new Rect(0,0,Screen.width,Screen.height/2 - offset); 
		if (Input.GetMouseButtonDown(0) && bounds.)
		{
			Debug.Log("down");            
		}
		if (Input.GetMouseButtonDown(0) && !bounds.Contains(Input.mousePosition))
		{
			
			Debug.Log("up");            
		}
		
		*/
		//transform.position = Camera.main.ScreenToWorldPoint(Input.mousePosition);
		//Vector3 screenPoint =new Vector3(Input.mousePosition);
		//screenPoint.z = 10.0f; //distance of the plane from the camera
		//transform.position = Camera.main.ScreenToWorldPoint(screenPoint);
	}
}
